export default function({tapDay, today, funButtons, record, caseKey}){
  const key = caseKey
  funButtons.dot = funButtons.dot.map(item=>{
    if (item.aim) {
      item.aim = item.aim + '?key='+key
    }
    return item
  })
  if (record) {
    wx.showToast({
      title: '重复设置无效',
      icon: 'error',
      duration: 2000
    })
    return
  }
  if (tapDay.timestamp < today.timestamp) {
    wx.showToast({
      title: '不能小于今天',
      icon: 'error',
      duration: 2000
    })
    return
  }

  const title = `补休：${tapDay.month}月${tapDay.day}日（${tapDay.lunarDate.ncWeek}）`
  const content = {body: [title], date: tapDay.timestr, itemClass: 'dayrest', ...funButtons}
  return {key, content}
}